<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 全局路由
// +----------------------------------------------------------------------
//use think\facade\Route;onMessageSend1

//---------------------微信小程序------------------------------------
Route::rule('wxLogin', 'app/Index/wxLogin'); //获取openid
Route::rule("upload_img", 'app/Index/upload_img'); //上传图片
Route::rule("getPhone", 'app/Index/getPhone');  //获取手机号
Route::rule("deuser", 'app/Index/deuser'); //保存用户信息
Route::rule('getConfigAdmin', 'app/Index/getConfigAdmin');// 获取各项配置
Route::rule('getBanner', 'app/index/getBanner');//获取banner图
Route::rule('getIndexCateBg', 'app/Index/getIndexCateBg');//首页三张分类背景


Route::rule('getCateList', 'app/Index/getCateList');//获取商品分类
Route::rule('getCateList2', 'app/Index/getCateList2');//获取商品分类 臻品区分类
Route::rule('getNotice', 'app/Index/getNotice');//获取通知公告
Route::rule('indexGoods', 'app/Index/indexGoods');//首页商品列表 限制每项3个
Route::rule('getMaterial', 'app/Index/getMaterial');//获取素材

Route::rule('getMaterialDetail', 'app/Index/getMaterialDetail');//获取素材详情

Route::rule('getMemberInfo', 'app/WxUser/getMemberInfo');//获取用户信息
Route::rule('updateUserinfo', 'app/WxUser/updateUserinfo');//修改用户信息
Route::rule('getGoodsList', 'app/index/getGoodsList');//臻品区商品列表
Route::rule('getGoodsDetail', 'app/WxUser/getGoodsDetail');//商品详情
Route::rule('getGoodsAttr', 'app/index/getGoodsAttr');//商品规格


Route::rule('getAddressList', 'app/WxUser/getAddressList');//获取收货地址
Route::post('addAddress', 'app/WxUser/addAddress');//增加收货地址
Route::post('editAddress', 'app/WxUser/editAddress');//编辑收货地址
Route::rule('getDefaultAddress', 'app/WxUser/getDefaultAddress');//获取默认地址
Route::rule('getAddressById', 'app/WxUser/getAddress2');//通过id获取地址详情
Route::get('delAddress', 'app/WxUser/delAddress'); //删除地址

Route::rule('addGoodsCar', 'app/WxUser/addGoodsCar'); //加入购物车
Route::rule('getGoodsCarList', 'app/WxUser/getGoodsCarList'); //获取购物车列表
Route::rule('delGoodsCarList', 'app/WxUser/delGoodsCarList'); //删除购物车商品
Route::rule('updateGoodsCardList', 'app/WxUser/updateGoodsCardList'); //修改购物车商品数量

Route::rule('file_upload', 'app/Index/file_upload');//上传视频文件
Route::rule('upload_fileOss', 'app/Index/upload_fileOss');//上传视频文件oss

//视频相关
Route::rule('videoList', 'app/Index/videoList'); //首页视频列表
Route::rule('videoList2', 'app/WxUser/videoList2'); //视频列表
Route::rule('videoDetail', 'app/WxUser/videoDetail'); //视频详情
Route::rule('seeFinishVideo', 'app/WxUser/seeFinishVideo'); //看完视频调用

Route::rule('fractionShopList', 'app/Index/fractionShopList'); //积分商城列表
Route::rule('pointFoodsDetail', 'app/Index/pointFoodsDetail'); //积分商品详情
Route::rule('fractionExchange', 'app/WxUser/fractionExchange'); //积分兑换商品
Route::rule('fractionExchange2', 'app/WxUser/fractionExchange2'); //积分兑换商品新
Route::rule('PGoodsOrderList', 'app/WxUser/PGoodsOrderList'); //积分兑换商品
Route::rule('PGoodsOrderList2', 'app/WxUser/PGoodsOrderList2'); //新积分兑换订单列表
Route::rule('fractionHistory', 'app/WxUser/fractionHistory'); //积分明细

Route::rule('collectGoods', 'app/WxUser/collectGoods'); //收藏物品
Route::rule('cancelCollectGoods', 'app/WxUser/cancelCollectGoods'); //取消收藏
Route::rule('cancelCollectGoods2', 'app/WxUser/cancelCollectGoods2'); //取消收藏2
Route::rule('collectList', 'app/WxUser/collectList'); //收藏列表


//todo 分销项后台商品管理修改，写接口，视频列表，视频详情，看完视频赠送积分，积分商城列表，积分商品详情，积分兑换商品，积分兑换商品，积分明细。 上海陪诊 后台修改，增加服务数据，项目条款，添加医院路线

Route::rule('createOrder2', 'app/WxUser/createOrder2'); //购物车直接购买
Route::rule('getMemberCouponAble', 'app/WxUser/getMemberCouponAble'); //判断优惠卷是否能用

Route::rule('orderPay', 'app/WxUser/orderPay'); //订单发起支付
Route::rule('orderPayBack', 'app/WxUser/orderPayBack'); //订单发起支付回调
Route::rule('orderList', 'app/WxUser/orderList'); //订单列表
Route::rule('orderDetail', 'app/WxUser/orderDetail'); //订单详情
Route::rule('finishOrder', 'app/WxUser/finishOrder'); //完成收货


//================================================================
Route::rule('creatPTOrder', 'app/WxUser/creatPTOrder'); //发起拼团
Route::rule('PtOrderPay', 'app/WxUser/PtOrderPay'); //拼团发起支付
Route::rule('PtOrderPayBack', 'app/WxUser/PtOrderPayBack'); //发起拼团支付回调
Route::rule('PtCouponsPay', 'app/WxUser/PtCouponsPay');//拼团卷支付
Route::rule('getPtCoupons', 'app/WxUser/getPtCoupons');//获取拼团卷数量
Route::rule('getPtOrderDetail', 'app/WxUser/getPtOrderDetail');//获取发起拼团订单详情

Route::rule('getPtOrderDetail2', 'app/Index/getPtOrderDetail2');//获取分享拼团详情


Route::rule('isCanPin', 'app/WxUser/isCanPin');//判断是否可以参加拼团
Route::rule('addPt', 'app/WxUser/addPt');//创建参加拼团订单
Route::rule('PtOrderPay2', 'app/WxUser/PtOrderPay2'); //参加拼团发起支付
Route::rule('PtOrderPayBack2', 'app/WxUser/PtOrderPayBack2'); //创建参加拼团订单 支付回调


Route::rule('index_top', 'app/Index/index_top');//首页分区
Route::rule('indexVideo', 'app/Index/indexVideo');//首页视频
Route::rule('indexKjGoods', 'app/Index/indexKjGoods');//首页砍价商品
Route::rule('indexPtGoods', 'app/Index/indexPtGoods');//首页拼团商品
Route::rule('recommonGoods', 'app/Index/recommonGoods');//首页推荐

Route::rule("isXinPeople", 'app/WxUser/isXinPeople');//判断是否新人可领取优惠券
Route::rule("getXinCoupons", 'app/WxUser/getXinCoupons');//获取新人优惠券
Route::rule("couponsList", 'app/WxUser/couponsList');//优惠卷列表
Route::rule("getCoupons", 'app/WxUser/getCoupons');//领取优惠卷
Route::rule('getJKGoodsList', 'app/index/getJKGoodsList');//健康区商品列表

Route::rule('getPTGoodsList', 'app/index/getPTGoodsList');//拼团专区商品列表

Route::rule("getAddressByCity", 'app/Index/getAddressByCity');//通过坐标获取位置信息
Route::rule("topGwCoupons", 'app/WxUser/topGwCoupons');//购物商城顶部信息

Route::rule("getGoodsCoupons1", 'app/WxUser/getGoodsCoupons1');//臻品区健康区 可用购物卷金额
Route::rule("getMemberCoupons", 'app/WxUser/getMemberCoupons');//臻品区健康区 可用优惠卷

Route::rule("getKjGoodsList", 'app/Index/getKjGoodsList');//砍价区商品列表

Route::rule("signList", 'app/WxUser/signList');//签到列表
Route::rule("isSign", 'app/WxUser/isSign');//判断今天是否签到
Route::rule("sign", 'app/WxUser/sign');//会员签到

Route::rule('createOrder', 'app/WxUser/createOrder'); //臻品区、健康区、拼团区直接购买、砍价区直接购买

Route::rule('getHealInfo', 'app/Index/getHealInfo'); //获取健康信息

Route::rule('myTopCoupons', 'app/WxUser/myTopCoupons'); //获取用户信息顶部卷

Route::rule('getMemberCouponsList', 'app/WxUser/getMemberCouponsList'); //我的优惠卷列表
Route::rule('myPtList', 'app/WxUser/myPtList'); //我的拼团

Route::rule('isCreateBargain', 'app/WxUser/isCreateBargain'); //判断用户是否可发起砍价
Route::rule('createBargain', 'app/WxUser/createBargain'); //发起砍价

Route::rule('isCanBargain', 'app/WxUser/isCanBargain'); //判断用户是否可砍价
Route::rule('joinBargain', 'app/WxUser/joinBargain'); //参与砍价

Route::rule('getBargainDetail', 'app/Index/getBargainDetail'); //砍价活动详情

Route::rule('getBargainRecord', 'app/WxUser/getBargainRecord'); //砍价记录
Route::rule('myBargainList', 'app/WxUser/myBargainList'); //我的砍价列表
Route::rule('createBargainOrder', 'app/WxUser/createBargainOrder'); //砍价创建订单
Route::rule('bargainOrderPay', 'app/WxUser/bargainOrderPay'); //砍价发起支付
Route::rule('bargainOrderPayBack', 'app/WxUser/bargainOrderPayBack'); //砍价支付回调

Route::rule('allKjGoods', 'app/Index/allKjGoods'); //大家都在砍
Route::rule('recommendPtGoods', 'app/Index/recommendPtGoods'); //推荐拼团
//商店相关
Route::rule('isCanApplyShop', 'app/WxUser/isCanApplyShop'); //判断是否可以申请小店
Route::rule('getShopStatus', 'app/WxUser/getShopStatus'); //获取成为小店审核状态
Route::rule('applyShop', 'app/WxUser/applyShop'); //申请小店
Route::rule('getShopList', 'app/WxUser/getShopList'); //附近商家列表
Route::rule('getShopDistance', 'app/WxUser/getShopDistance'); //获取最近商店

Route::rule('getShopInfo', 'app/Shop/getShopInfo'); //获取商户信息
Route::rule('getOrderList', 'app/Shop/getOrderList'); //核销订单列表


Route::rule('getShopInfo', 'app/Shop/getShopInfo'); //获取商户信息
Route::rule('editShopInfo', 'app/Shop/editShopInfo'); //修改商户信息
Route::rule('getOrderList', 'app/Shop/getOrderList'); //核销订单列表

Route::rule('getOrderDate', 'app/Shop/getOrderDate'); //订单收益
Route::rule('verifyOrderDigits', 'app/Shop/verifyOrderDigits'); //核销码核销
Route::rule('verifyOrder', 'app/Shop/verifyOrder'); //商家扫码核销
Route::rule('shopMoneyTop', 'app/Shop/shopMoneyTop'); //商户顶部收益


Route::rule('ShopTixian', 'app/Shop/shopTixian'); //商家提现
Route::rule('shopMoneyList', 'app/Shop/shopMoneyList'); //收入明细
Route::rule('getOrderDate', 'app/Shop/getOrderDate'); //订单收益 核销订单 三个数
Route::rule('getHxOrder', 'app/Shop/getHxOrder'); //获取待核销数量
//=================================用户账户======================================

Route::rule('myTeam', 'app/WxUser/myTeam'); //我的团队
//购物卷兑换
Route::rule('PtCGw', 'app/WxUser/PtCGw');
//拼团成功
Route::rule('PtSList', 'app/Index/PtSList');
//砍价成功
Route::rule('bargainSList', 'app/Index/bargainSList');
//拼团卷明细
Route::rule('PTCouponsHistory', 'app/WxUser/PTCouponsHistory');

Route::rule('tui', 'app/Index/tui');//直接退款
Route::rule('getUpperLevelIds3', 'app/Index/getUpperLevelIds3');

Route::rule('getExpress', 'app/Index/getExpress');


//取消订单
Route::rule('cancelOrder', 'app/WxUser/cancelOrder');

//-------------------首页接口---------------------
Route::rule('cIndex', 'app/Index/cIndex');//1   会员数量 订单数量 拼团完成 砍价完成
Route::rule('cIndex2', 'app/Index/cIndex2');//2 订单金额 退款金额  商家提现 商家已提
Route::rule('getPie', 'app/Index/getPie');//派状图 每个区的商品订单
Route::rule('getbar', 'app/Index/getbar');//柱状图 商品销量排行


Route::rule('bargainActiveEnd', 'app/Index/bargainActiveEnd');//砍价活动定时
Route::rule('uPDirector', 'app/Index/uPDirector');//用户等级不能下降 升级市店
Route::rule('uPShareholder', 'app/Index/uPShareholder');//升级股东
Route::rule('getOrderPay', 'app/Index/getOrderPay');//定时任务订单支付完成 2秒一次
Route::rule('joinPtOrder', 'app/Index/joinPtOrder');//定时任务参与拼团 完成支付
Route::rule('KjPtOrder', 'app/Index/KjPtOrder');//定时任务砍价支付
Route::rule('editDate', 'app/Index/editDate');//设置c
Route::rule('c1', 'app/Index/c1');
Route::rule('c2', 'app/Index/c2');

Route::rule('ccorderPayBack2', 'app/WxUser/ccorderPayBack2');

//参与拼团回调
Route::rule('pdOrderNotify', 'app/Index/order_additional_notify');
Route::rule('ptNotify', 'app/Index/ptNotify');//助力订单支付回调
Route::rule('ptNotify2', 'app/Index/ptNotify2');//参加助力订单支付回调
Route::rule('orderPayNotify', 'app/Index/orderPayNotify');//订单支付回调
Route::rule('isCanPinCreate', 'app/WxUser/isCanPinCreate');//判断是否可以发起助力订单

Route::rule('getYf', 'app/WxUser/getYf');//获取邮费金额

Route::rule('jfAccountCenter', 'app/WxUser/jfAccountCenter');//顶部积分四个
Route::rule('jfList', 'app/WxUser/jfList');//积分列表
Route::rule('jfTx', 'app/WxUser/jfTx');//积分提现


Route::rule('tuiOrder', 'app/WxUser/tuiOrder'); //订单申请退款
Route::rule('tuiReason', 'app/WxUser/tuiReason'); //获取退款原因
Route::rule('tuiOrderList', 'app/WxUser/tuiOrderList'); //退款订单列表
Route::rule('cancelOrderTui', 'app/WxUser/cancelOrderTui'); //取消申请退款

Route::rule('orderTuiDetail', 'app/WxUser/orderTuiDetail'); //退款详情
Route::rule('tuiSendOrder', 'app/WxUser/tuiSendOrder'); //退款发货
Route::rule('on_yuan', 'app/Index/on_yuan'); //一元等于多少积分
Route::rule('cancelZl', 'app/WxUser/cancelZl'); //取消助力订单


//代理相关
Route::rule('shouDetailList', 'app/Dl/shouDetailList'); //返利订单列表
Route::rule('accountCenter', 'app/Dl/accountCenter'); //账户中心四个
Route::rule('tixianList', 'app/Dl/tixianList'); //提现记录
Route::rule('tixian', 'app/Dl/tixian'); //提现
Route::rule('myTeam', 'app/Dl/myTeam'); //邀请用户列表

//定时任务
Route::rule('orderCancelTime', 'app/Index/orderCancelTime');//订单取消定时
Route::rule('orderFinishTime', 'app/Index/orderFinishTime');//自动订单完成 发货完成后

//测试使用
Route::rule('order_zl', 'app/Index/order_zl');//发起助力订单完成
Route::rule('order_zl2', 'app/Index/order_zl2');//参加助力订单完成
Route::rule('order1', 'app/Index/order1');//直接购买订单完成


//银河商城 后台 商品管理、升级设置；接口 产品，发起助力订单，参与助力，直接购买，订单退款，商品收藏，会员积分 相关接口
Route::rule('getPTGoodsList2', 'app/index/getPTGoodsList2');//会员区商品列表
Route::rule('createOrder2', 'app/WxUser/createOrder2');//购买会员订单
Route::rule('orderPay2', 'app/WxUser/orderPay2');//会员订单发起支付
Route::rule('orderPayNotify2', 'app/index/orderPayNotify2');//会员订单回调
Route::rule('getOrderJfList', 'app/WxUser/getOrderJfList');//领取积分订单列表
Route::rule('getJfOrderDetail', 'app/WxUser/getJfOrderDetail');//领取详情
Route::rule('detailDay', 'app/WxUser/detailDay');//领取每日列表详情
Route::rule('getOrderJf', 'app/WxUser/getOrderJf');//积分订单领取


Route::rule('c11', 'app/Index/c11');
Route::rule('order4', 'app/Index/order4');//会员订单完成
Route::rule('ftpTest', 'app/Index/ftpTest');//ftp测试
Route::rule('detailDay2', 'app/WxUser/detailDay2');//detailDay2
Route::rule('isGetByOrder', 'app/WxUser/isGetByOrder');//今天是否领取

//新增助力
Route::rule('createZl', 'app/WxUser/createZl');//发起助力
Route::rule('bargainOrderPayNotify', 'app/Index/bargainOrderPayNotify');//助力订单回调


Route::rule('fh', 'app/Index/fh');//发货


